<script>
  import {FeedbackStore} from "../stores";
  $: count = $FeedbackStore.length;
  $: average = $FeedbackStore.reduce((a, {rating}) => a + rating, 0) / $FeedbackStore.length;
</script>


<div class="feedback-stats flex justify-between items-center text-white">
  <h4>{count} Reviews</h4>
  <h4>Ratings Averages :{average}</h4>
</div>
